The library provides a general gateway
layer through which all networking passes. It can both control
access to the network and provide access through gateways in
firewalls. This may make direct connections in some cases and
pass through some sort of gateway in others.1 The
library's basic function responsible for making connections is
url-open-stream.
Open a stream to host, possibly via a gateway. The other arguments are as for
open-network-stream. This will not make a connection ifurl-gateway-unpluggedis non-nil.
This is a regular expression that matches local hosts that do not require the use of a gateway. If
nil, all connections are made through the gateway.
This variable controls which gateway method is used. It may be useful to bind it temporarily in some applications. It has values taken from a list of symbols. Possible values are:
telnet- Use this method if you must first telnet and log into a gateway host, and then run telnet from that host to connect to outside machines.
rlogin- This method is identical to
telnet, but uses rlogin to log into the remote machine without having to send the username and password over the wire every time.socks- Use if the firewall has a socks gateway running on it. The socks v5 protocol is defined in RFC 1928.
native- This method uses Emacs's builtin networking directly. This is the default. It can be used only if there is no firewall blocking access.
The following variables control the gateway methods.
The gateway host to telnet to. Once logged in there, you then telnet out to the hosts you want to connect to.
This should be a list of parameters to pass to the telnet program.
This is a regular expression that matches the password prompt when logging in.
This is a regular expression that matches the username prompt when logging in.
This is a regular expression that matches the shell prompt.
This is a regular expression that matches the shell prompt.
This specifies the default server, it takes the form
("Default server"serverportversion)where version can be either 4 or 5.
If this is
nilthen you will be asked for the password, otherwise it will be used as the password for authenticating you to the socks server.
This is the username to use when authenticating yourself to the socks server. By default this is your login name.